package com.mapper;


import com.pojo.Student;
import com.req.StudentPageReq;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentMapper{

    Student getUserByAccount(@Param("account") String account);

    Student login(@Param("account") String account, @Param("password") String password);

    int register(@Param("student") Student student);

    int updatePassword(@Param("student") Student student);

    Student getById(@Param("id") Integer id);

    void save(@Param("student") Student student);

    void removeById(@Param("id") Integer id);

    Integer updateById(@Param("student") Student student);

    List<Student> selectStudentList(@Param("student") StudentPageReq studentPageReq);

    List<String> getMajorList();

    List<String> getClassList();

    Student checkPassword(@Param("student") Student student);
}
